-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(subform): backend handling of datatype calls from preview #13971
base: main
Are you sure you want to change the base?
feat(subform): backend handling of datatype calls from preview #13971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 🚀
{ | ||
[Authorize] | ||
[AutoValidateAntiforgeryToken] | ||
[Route("{org:regex(^(?!designer))}/{app:regex(^(?!datamodels$)[[a-z]][[a-z0-9-]]{{1,28}}[[a-z0-9]]$)}")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest moving /instances
to the base route here, as you did with /data
in the DataController
?
[Route("{org:regex(^(?!designer))}/{app:regex(^(?!datamodels$)[[a-z]][[a-z0-9-]]{{1,28}}[[a-z0-9]]$)}")] | |
[Route("{org:regex(^(?!designer))}/{app:regex(^(?!datamodels$)[[a-z]][[a-z0-9-]]{{1,28}}[[a-z0-9]]$)}/instances")] |
{ | ||
public static class PreviewConstants | ||
{ | ||
public static readonly Guid MockInstanceGUID = new("f1e23d45-6789-1bcd-8c34-56789abcdef0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constant does not seem to be in use
Description
This PR solves preview of subform table components.
Changes made to backend:
DataController
andInstanceController
in a new directorypreview/
Moved over existing endpoints from
PreviewController
to these filesIsolates preview backend calls from studio, and tries to stay true to altinn-app-api format for easier source lookup
preview/
directoryDataPatchRequest
andDataPatchResponse
subform-component-preview-pr.mp4
Related Issue(s)
Verification
Documentation